-- GENERATED SPELL FOR [Apothecary Hanes] --


function spell0_23784(pUnit, Event) --@Healing Potion,Self--
pUnit:FullCastSpellOnTarget(17534,pUnit)
pUnit:RegisterEvent('Sorts_23784', 0, 1)
end

function Sorts_23784(pUnit, Event)
local choix_sorts_23784 = math.random(0, 0)
if choix_sorts_23784 == 0 then
pUnit:RegisterEvent('spell0_23784', 1, 1)
end
end

function mob23784_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23784', math.random(1500, 3000), 1)
end

function mob23784_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23784_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23784_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23784, 1, 'mob23784_Action')
RegisterUnitEvent(23784, 2, 'mob23784_Leave')
RegisterUnitEvent(23784, 3, 'mob23784_Kill')
RegisterUnitEvent(23784, 4, 'mob23784_Die')
